import { Vue } from 'vue-property-decorator';
import Utils from "./Utils"
import appconst from "./const"
export default class AppBase extends Vue {
  L(value: string, source?: string, ...argus: string[]): string {
    if (source) {
      return Utils.localize(value, source);
    } else {
      return Utils.localize(value, appconst.localization.defaultLocalizationSourceName);
    }

  }
  hasPermission(permissionName: string) {
    return Utils.hasPermission(permissionName);
  }
  hasAnyOfPermissions(argus: string[]) {
    return Utils.hasAnyOfPermissions(argus);
  }
  hasAllOfPermissions(argus: string[]) {
    return Utils.hasAllOfPermissions(argus);
  }


}